#ifndef MEETINGWAY_H
#define MEETINGWAY_H

#include <QWidget>
#include<QMenu>
#include<QtSql>
#include<QTableWidget>
#include"meetpersondialog.h"
namespace Ui {
class meetingWay;
}

class meetingWay : public QWidget
{
    Q_OBJECT
signals:
    void sendMeetID(QString);
public:
    explicit meetingWay(QWidget *parent = 0);
    ~meetingWay();
    void SwapTwoRow(QTableWidget*,int,int ,int);
private:
    Ui::meetingWay *ui;
    QMenu* menu;
    meetPersonDialog* per_dialog;
    QSqlDatabase db;
    void widgetAdjust();//调整控件操作都放这个函数中
    void init_menu();
    QString jduge_html(QString Q);
    QString statistic_html(QString Q);
    QString cadre_html(QString Q);
private slots:
    //针对会议方案的菜单操作
    //添加方案
    //void add_meet();
    //删除方案
    void del_meet();
    //方案上移
    void up_meet();
    //方案下移
    void down_meet();
    //添加记录
    void add_record();
    //删除记录
    void del_record();
    //编辑职务
    //void editPost();
    //上移
    void up_per();
    //下移
    void down_per();
    //表决票
    void out_jduge();
    //统计表
    void out_statistic();
    //干部名单表
    void out_cadre();
    //编辑锁定按钮
    //void click_edit();
    void click_lock();
public slots:
    void showdatabase();
    void showMeetPer();
    void showMeetPerInfo();
    void clearTable();
    //void getID(int);
    //void on_click_seekbtn();
};

#endif // MEETINGWAY_H
